//
//  UILabel+Extension.swift
//  KitchenAssistant
//
//  Created by 陈燕璇 on 2021/3/31.
//

import UIKit

extension UILabel {
    convenience init(title: String,fontSize: CGFloat = 14,color: UIColor = UIColor.darkGray){
        self.init()
        text = title
        textColor = color
        font = UIFont.systemFont(ofSize: fontSize)
        numberOfLines = 0
        textAlignment = NSTextAlignment.center
    }
}
